package com.ruoyi.stock.service;

import com.ruoyi.stock.domain.StockUser;

import java.util.List;
import java.util.Map;

/**
 * 用户Service接口
 * 
 * @author ruoyi
 * @date 2024-12-30
 */
public interface IStockUserService 
{
    /**
     * 查询用户
     * 
     * @param id 用户主键
     * @return 用户
     */
    public StockUser selectStockUserById(Long id);

    /**
     * 查询用户列表
     * 
     * @param stockUser 用户
     * @return 用户集合
     */
    public List<StockUser> selectStockUserList(StockUser stockUser);

    /**
     * 新增用户
     * 
     * @param stockUser 用户
     * @return 结果
     */
    public int insertStockUser(StockUser stockUser);

    /**
     * 修改用户
     * 
     * @param stockUser 用户
     * @return 结果
     */
    public int updateStockUser(StockUser stockUser);




    public int updateStockUserBySysUserId(StockUser stockUser);

    /**
     * 批量删除用户
     * 
     * @param ids 需要删除的用户主键集合
     * @return 结果
     */
    public int deleteStockUserByIds(Long[] ids);

    /**
     * 删除用户信息
     * 
     * @param id 用户主键
     * @return 结果
     */
    public int deleteStockUserById(Long id);



    /////
    public List<Map<String, Object>> selectMemberOrderByDay();

    /////////
    public Map<String,String>  selectMemberOrderCount();

    /// 估计到期时间更新会员状态
    public int updateUserMemberStateByMemberMaturityTime(StockUser stockUser);
    ///每天减少一个会员天数
    public int updateUserMemberDays(StockUser stockUser);

}
